home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-07 / perform.txt < prev    next >
Text File  |  1992-10-06  |  24KB  |  438 lines

  1.  
  2.  
  3.           TECHNICAL BULLETIN                                        PERFORM
  4.           LANtastic Performance Issues
  5.  
  6.           The  following  information  is  based  on  in-house  testing  of
  7.           LANtastic.   If you  are not a  registered LANtastic  owner, your
  8.           questions  should be  directed to  our technical  sales staff  at
  9.           (602) 293-6363.   Any questions or comments on  this bulletin may
  10.           be forwarded by  FAX (602) 293-8065 or mailed  to: Artisoft Inc.,
  11.           691 East River Road, Tucson, AZ., 85704, ATTN: Technical Support.
  12.  
  13.                                GENERAL HINTS AND TIPS 
  14.                      INCREASING PERFORMANCE OF LANTASTIC NETWORKS
  15.  
  16.  
  17.           "What can I do to speed  up my LAN?" A very common  question, and
  18.           one to  which there  is unfortunately, no  cut and  dried answer.
  19.           Network  performance depends  on many things.   Getting  the best
  20.           performance out  of your  particular installation  may require  a
  21.           little experimentation.  This bulletin  presents a  discussion of
  22.           some  of the  major factors  that affect  performance, and  a few
  23.           general suggestions for improvement.
  24.  
  25.           Choosing your Hardware
  26.  
  27.           When you're choosing the hardware for your LAN, keep in mind that
  28.           the  things  that  make  a  fast  computer  are  also  the  basic
  29.           ingredients of a fast network.  A fast processor, fast memory and
  30.           a fast disk drive  all help to provide better  network speed. For
  31.           best  performance,   you  should   choose  fast,  well   balanced
  32.           components. The two  biggest factors are CPU speed  and hard disk
  33.           speed. 
  34.  
  35.           It's fairly easy to find fast computers and fast disk drives  out
  36.           there in the marketplace, but for the best results make sure that
  37.           the components you buy  are well matched. If  you install a  high
  38.           performance disk  drive in a  4.77 Mhz  XT, your network  will be
  39.           slow because the computer's CPU won't be able to move data around
  40.           fast enough to keep up with the  drive, let alone the rest of the
  41.           network.  Similarly, if you install an old 20mb MFM drive in your
  42.           386-33,  the fast  processor will  spend  a lot  of time  waiting
  43.           around for the old drive, as will the rest of your network users.
  44.  
  45.           The transmission speed of the  adapter cards you choose will also
  46.           make  a difference. With reasonably fast machines, upgrading from
  47.           a LANtastic 2mbps adapter to  a new Artisoft Ethernet adapter can
  48.           approximately  double  the  throughput  of  the  network.  Again,
  49.           balance  is vital.  If you  have a  slow processor,  switching to
  50.           Ethernet may not make much difference -- the  2mbps adapter has a
  51.           coprocessor  that handles all  the low level  NetBIOS processing,
  52.           whereas the  Ethernet adapter  relies on  the computer to  handle
  53.           everything.  
  54.  
  55.           Optimizing Software Performance
  56.  
  57.           Now that we've dealt with  hardware selection; let's see what can
  58.           be done  to improve  the performance  of existing  installations.
  59.           First, let's  tie down what  we mean by  the "speed" of  the LAN.
  60.           There   are  really  two  things  at  issue  here,  the  physical
  61.           transmission speed of the hardware, and the effective throughput,
  62.           or how  fast data  gets from  one place  to another  on the  LAN.
  63.           Assuming for now  that the hardware is fixed  and immutable, here
  64.           are some suggestions  for getting the  best throughput with  your
  65.           particular application. 
  66.  
  67.           Optimizing Network Configuration
  68.  
  69.           There are  two  major configurations  of  the network  that  will
  70.           greatly benefit overall network performance.  
  71.  
  72.           The first is  simply using LANtastic's ability to  have more than
  73.           one  server on the network.   Splitting up  network tasks so that
  74.           different programs  are run on separate servers will decrease the
  75.           load on  each individual  server, this  will improve  the servers
  76.           response (and on a  non dedicated server improve  the performance
  77.           of the computer for the person sitting at the keyboard).
  78.  
  79.           The next is setting up  a dedicated server (while LANtastic  is a
  80.           Peer to Peer  network - Artisoft considers a  dedicated server to
  81.           be only a  special case of peer to peer  networking). A dedicated
  82.           server can  be specifically tuned to optimize  the performance of
  83.           the  Network portion  of the  computer  at the  detriment of  the
  84.           Workstation (keyboard) portion of the computer.
  85.  
  86.           This  is done  by using  the  RUN_BURST command  line switch  (on
  87.           AILANBIO with  versions  of  LANtastic  prior  to  4.1,  on  both
  88.           AILANBIO and SERVER with version 4.1 and greater).
  89.  
  90.           This switch controls the amount  of time that the program (either
  91.           netbios or  server) devotes  to  processing network  tasks.   The
  92.           higher the value the longer amount of time allocated.  Since both
  93.           REDIR and SERVER  release  control if there are no tasks  waiting
  94.           neither  switch  will conflict  with  the other.    Setting these
  95.           switches  to the  max 254  will  give optimum  performance for  a
  96.           dedicated server.
  97.  
  98.           In a dedicated server, memory no longer is a major consideration.
  99.           Large  sizes  for  the  servers  caching  and buffers  should  be
  100.           experimented with.  (See server buffering below.)
  101.  
  102.           Another  command that  is useful  for a  dedicated server  is the
  103.           ALONE command  included with  v4.0 and higher.   When  the server
  104.           program  is used to  access a  resource on  the server,  it first
  105.           swaps out all the DOS stacks and control memory.  It does this so
  106.           a  foreground task  can coexist  with the  server running  in the
  107.           background. On  a dedicated  server Alone  tells the  server that
  108.           there will  NEVER be  a program  running on  this machine  in the
  109.           foreground using  DOS and  so server saves  time by  NOT swapping
  110.           into and  out  of DOS.   This  means that  you cannot  run a  TSR
  111.           (Terminate and Stay  Resident program)  on  this dedicated server
  112.           that will use dos calls.
  113.  
  114.           General Improvements
  115.  
  116.           FASTOPEN
  117.  
  118.           Running  the  DOS  FASTOPEN command  will  improve  network speed
  119.           considerably(except  with MSDOS 5.0 because of a reported problem
  120.           in this version's FASTOPEN).  FASTOPEN stores the location on the
  121.           hard disk of each previously  opened file to make repeated access
  122.           to this file much faster.  
  123.  
  124.  
  125.           SEEK CACHE
  126.  
  127.           LANtastic 4.1 contains a new cache built into the server program,
  128.           SEEK CACHE.   SEEK CACHE  caches each users position  within open
  129.           random  access files. Typically  a seek cache  will significantly
  130.           affect performance of random access file operations if:
  131.  
  132.                1> Files being accessed are relatively large.
  133.                2> The files are kept open and accessed frequently.
  134.  
  135.           The optimum  size for  the  SEEK  CACHE is  the SIZE  of database
  136.           files/cluster  size (typically  4096)* 32 +  the Number  of files
  137.           *32.
  138.  
  139.  
  140.           RESOURCE CACHE
  141.  
  142.           When a  user on LANtastic  accesses a resource, LANtastic  has to
  143.           check  the  resources  Access  Control List  (ACL)  to  see  what
  144.           permissions  the user has.   This  requires loading  the resource
  145.           information  from the  hard disk  and  checking it.   To  improve
  146.           performance  with LANtastic  NOS  4.1  resource  caching  can  be
  147.           enabled on  a server.  This means that  as each resource (disk or
  148.           printer)  is accessed  it's access  information   is stored  in a
  149.           permanent  cache  in the  server.    There  should be  one  cache
  150.           specified  for  each commonly  used  resource.  If  a server  has
  151.           several  resources, but  only a  few are  normally  accessed, the
  152.           cache number can be set to the  number of commonly used resources
  153.           +1.   The  caches  are flushed  and  used on  a least  frequently
  154.           accessed  algorithm so system  performance will be  only slightly
  155.           affected.
  156.  
  157.  
  158.           INDIRECT FILE ACL's
  159.  
  160.           Indirect  files  will  greatly effect  network  performance, with
  161.           LANtastic  NOS 3.0x  eliminate  the I  from  each disk  resources
  162.           Access Control List.   With NOS 4.xx  the I ACL has  already been
  163.           eliminated. With the  I ACL in place  each time a file  is opened
  164.           the NOS checks to see  if the file is an  indirect file.  If  you
  165.           are not using indirect files  eliminating this ACL will save time
  166.           when a file is opened.
  167.  
  168.           SERVER AUDITING
  169.  
  170.           Indirectly,  server auditing  can  also have  a  great effect  on
  171.           network performance.  If auditing  is enabled and the audit files
  172.           are not cleared on a regular basis this file can grow very large.
  173.           This by itself is not a problem; but since auditing requires that
  174.           an entry  be made to this file every  time an audited function is
  175.           used,  the  time  spent seeking  to  the end  of  this  file will
  176.           increase as the file size increases.
  177.  
  178.           SEND SERVER ID
  179.  
  180.           You can reduce the load on heavily used networks by disabling the
  181.           Send Server ID  selection in NET_MGR, Server  Startup Parameters.
  182.           With this selection  enabled the server sends out  a message once
  183.           every retry period (55ms x retry_period setting), this message is
  184.           just that the machine is a server  and available.  If your system
  185.           is using batch files this message  is not needed.  If the  server
  186.           name  is known, it can  be logged into even  if the server is NOT
  187.           sending out it's ID.
  188.  
  189.           DISK CACHING
  190.  
  191.           Adding  a disk  cache to  the  server also  helps performance  in
  192.           almost  all situations.  Disk caching  programs  work by  storing
  193.           frequently  requested  information  in memory.  This  reduces the
  194.           number  of physical accesses to the  disk. Since accessing memory
  195.           is  almost always faster  than accessing the  disk drive, caching
  196.           can greatly improve the disk performance of your network. 
  197.  
  198.           The LANtastic  disk caching  program;  LANcache, is  specifically
  199.           designed to  work with LANtastic networks. It  caches disk writes
  200.           as well as disk reads and when it actually does  have to write to
  201.           the disk,  it  does so  as  a background  operation so  that  CPU
  202.           operations can continue. 
  203.  
  204.           Choosing the Best Buffer Settings
  205.  
  206.           Beyond these general changes, getting the best performance out of
  207.           your specific  application  is a  matter of  fine tuning  several
  208.           parameters. LANtastic has four sets of buffers, each of which can
  209.           affect performance in specific situations. 
  210.  
  211.           REDIR Buffers
  212.  
  213.           It takes the network about the same amount of time to send 1 byte
  214.           of data as it does  to send 256 bytes of data. Every  packet sent
  215.           over the  network takes  time to construct  and time  to process.
  216.           Given this, it makes sense to include as much data as possible in
  217.           each packet -- it keeps the network  overhead impact to a minimum
  218.           and  reduces network traffic. The REDIR program accomplishes this
  219.           by buffering network requests at  each machine. Here's an example
  220.           of REDIR's buffering in action: 
  221.  
  222.                You are creating a file of customer names  on the server and
  223.                adding  data to it. You type in the  names one at a time and
  224.                your  program writes  the names  to the data  file one  at a
  225.                time. Rather  than issue a  network send for each  name, the
  226.                data gets stored  in the local REDIR buffer  until you close
  227.                the file or fill  the buffer. At that point, REDIR  issues a
  228.                single request to send the entire buffer.
  229.  
  230.           REDIR  buffers read requests similarly. If  you request an amount
  231.           of data smaller than the  REDIR buffer, REDIR requests one buffer
  232.           full  of data  from the  server. Then,  if you  request the  next
  233.           sequential piece  of data,  REDIR can supply  it to  your program
  234.           without even making a network request.
  235.  
  236.  
  237.           REDIR buffers are  only used for small (small  means smaller than
  238.           the REDIR buffer  size) sequential reads or writes  to files that
  239.           are NOT opened  in the sharable mode. If you read or write blocks
  240.           of  data  larger than  the  REDIR  buffer,  the network  software
  241.           bypasses it and  moves data directly from the applications buffer
  242.           directly to the NetBIOS. The  ideal REDIR buffer size then, would
  243.           be  about the  average  size  of the  packets  that your  network
  244.           typically sends and receives. You  can set the size of the  REDIR
  245.           buffers with the SIZE= command line switch.  
  246.  
  247.           The number  of REDIR buffers  can also affect the  performance of
  248.           many applications. If  you allocate multiple REDIR  buffers using
  249.           the  BUFFERS= command line switch, the network tries to associate
  250.           each file opened  in the non sharable mode.  Network printers are
  251.           handled just like other files.  Ideally, you should have a buffer
  252.           available for  each open non  sharable network file. If  you have
  253.           more files than available buffers, the network flushes the  least
  254.           recently used buffer and assigns into the new request.
  255.  
  256.           WordPerfect is a  good example of  a program that is  affected by
  257.           the number  of buffers.  If you have  only one  buffer allocated,
  258.           printing can be very slow because WP has to read the document and
  259.           send data  to the printer with  the same buffer. The  buffer gets
  260.           continually filled and flushed, back and forth, with printer data
  261.           and  document data. In  this situation, allocating  just one more
  262.           buffer  allows WP  to use  one  buffer for  document reading  and
  263.           another for printing. 
  264.  
  265.           Server Buffers and Tasks
  266.  
  267.           A server buffer is at the other end of a  REDIR buffer. When, for
  268.           example, a workstation makes a read request, the server reads one
  269.           server  buffer full  of  data,  beginning  with  the  information
  270.           requested. If the workstation then asks for the next piece of the
  271.           same information, the  server can get it from  the buffer instead
  272.           of physically reading the hard disk.
  273.  
  274.           The server  buffer size  can be changed  from the  Server Startup
  275.           Parameters option in  the NET_MGR program.  Be aware that  bigger
  276.           isn't necessarily  better -- as  with REDIR buffers,  the optimal
  277.           size is  somewhere around  the average size  of the  packets that
  278.           will  be transferred across the  network by your application. One
  279.           server buffer of  whatever size you select is  allocated for each
  280.           network task. Large network buffers will greatly effect the speed
  281.           when moving large amounts of sequential data across the  network.
  282.           Loading programs, using a word processor, and using a cad program
  283.           are all  examples of the  type of applications  and use  that can
  284.           benefit from large server buffers.
  285.  
  286.           When a workstation submits a request to a server, the server will
  287.           work on the request until the  task is finished, or the timeslice
  288.           allocated to  the server is  over. If the  server is set  up with
  289.           only one network task, instead  of switching, the server will run
  290.           the request to completion and other incoming tasks will be queued
  291.           up behind it.  If server tasks are higher, the server can process
  292.           several  tasks in  one active  period. One  task can  actually be
  293.           buffered in the server while another in being processed.
  294.  
  295.           If you're  a using network  adapter with a coprocessor,  like our
  296.           Enhanced  2mbps adapter, increasing  the number of  network tasks
  297.           (with the Server Startup Parameters  option of NET_MGR) will give
  298.           you  a  big  performance  boost. While  the  coprocessor  is busy
  299.           working on one task, the  server's CPU can work on another.  This
  300.           advantage  is multiplied  if you  have more than  one coprocessor
  301.           equipped adapter in a  server. In fact, with three  or four 2mbps
  302.           boards  in  a  dedicated server  and  a  corresponding number  of
  303.           network tasks, you can achieve a continuous throughput comparable
  304.           to that of an Ethernet network with  an equal number of stations.
  305.           As a  plus, you've  got built-in  redundancy -- the  workstations
  306.           connected to each adapter will  function as separate networks. If
  307.           one  segment fails because  of cabling  or adapter  problems, the
  308.           rest will still operate.
  309.  
  310.           SERVER REQUEST SIZE
  311.  
  312.           With NOS 4.xx a new parameter  has been added to change the  size
  313.           of  the server  request buffer.  The REQUEST_SIZE=  is set  to 14
  314.           bytes by default. If a request from a workstation is smaller than
  315.           this buffer, the  server will  be able  to act  directly on  this
  316.           request. If  the request  is larger than  the request  buffer, it
  317.           must be buffered  by the SERVERS initial send  buffer, and system
  318.           overhead is  increased.  The  value of 14 is  chosen specifically
  319.           for LANtastic.   This 14 byte buffer is  large enough to tell the
  320.           server  what type  of  operation  and how  many  bytes the  total
  321.           operation will take.
  322.  
  323.           There are some  natural breaks in the  size of this buffer.   The
  324.           default will handle  only the very smallest  network tasks, lock,
  325.           unlock,  closing  a file,  etc.    At  60-70 bytes  most  network
  326.           activity except reads and writes are processed without additional
  327.           buffering, and from 600-2048 small reads and writes are processed
  328.           without additional server  buffering.  This parameter  should NOT
  329.           be set larger than the  AILANBIO Initial Send Buffer. One request
  330.           buffer is allocated  for each user in MAX  USERS (LOGINS= command
  331.           line switch). 
  332.  
  333.           LOCK HOLD TIME
  334.  
  335.           Artisoft has discovered  that setting the  lock hold time  higher
  336.           than 0 with LANtastic v4.1 can have an adverse effect on the time
  337.           required  to  open  a  file.    This  parameter  should  be  used
  338.           cautiously.  If  your  use of  the  network  entails opening  and
  339.           closing a  large number of  files, then this parameter  should be
  340.           set  to  a  low value.    If  your use  of  the  network involved
  341.           accessing a large common data  file, then increasing the value of
  342.           this parameter will help performance.
  343.  
  344.           NetBIOS and Adapter Card Memory
  345.  
  346.           With LANtastic v4.xx ethernet cards, you can increase the netbios
  347.           packet size.   This can have an  effect on the system  speed when
  348.           loading  programs  and  performing  large  sequential  reads  and
  349.           writes.  Increasing  the PACKET_SIZE beyond 1500 bytes  moves the
  350.           network out of IEEE802.3 standards  and may cause problems if you
  351.           are using third party IEEE devices like routers or bridges.
  352.  
  353.           With  our AE-2 card,  there's an  easy way  to get  a performance
  354.           boost  on heavily  loaded networks.  You can upgrade  the adapter
  355.           from its default  16K configuration to a  full 64K of RAM.  It is
  356.           fairly easy  to tell  when this  upgrade is  needed.   Start  the
  357.           network; if  after  10  minutes  of use  lancheck  shows  network
  358.           resource exhuasts, increasing the memory on the adapter will help
  359.           network performance.
  360.  
  361.           Effects of Changing Buffer Sizes
  362.  
  363.           Keep in  mind that on  systems with  only two or  three stations,
  364.           changing the  buffer configuration  may not  have any  measurable
  365.           impact on  speed. In any case, increasing  the size and number of
  366.           REDIR and SERVER  buffers uses memory and can  slow down programs
  367.           running  on  the  server.  If  your  application  performance  is
  368.           critical, consider setting  up a dedicated  server for your  most
  369.           used application programs and printers.
  370.  
  371.           Running Applications on the Server
  372.  
  373.           To get  the best  performance out  of your  network when you  run
  374.           applications on  a server,  you should always  use the  server as
  375.           though  it  was a  remote  workstation:  log  in and  access  the
  376.           application  through  network drives.  Using the  server locally,
  377.           without logging in, places you in contention with the rest of the
  378.           users  and network  performance can  suffer. If  you log  in, the
  379.           server will schedule you along with the rest of the network users
  380.           and everyone will get good performance.   This does NOT mean that
  381.           you  should issue NET USE commands  that use a drive over itself,
  382.           IE NET USE C: \\SERVER\C-DRIVE.  This can cause problems.   It is
  383.           better  to create  a common  network  redirection ie  NET USE  G:
  384.           \\SERVER\C-DRIVE  and have  ALL  workstations  (even the  server)
  385.           access the program off of G:.
  386.  
  387.           Increasing Print Speed
  388.  
  389.           One of the slowest things about  printing to a network printer is
  390.           spooling to the hard  disk. With LANtastic NOS 3.0 and  above you
  391.           can easily increase the print spooling speed by spooling to a RAM
  392.           disk.  To  change the  spooler's location,  use the  Change Spool
  393.           Location option  of NET_MGR's  Queue Maintenance  function.   You
  394.           must be sure  that the ramdisk is  large enough to hold  both the
  395.           largest file printed and all print requests that may be submitted
  396.           at one time.  The spooler will exit with an error if there is not
  397.           enough space available on this drive.
  398.  
  399.           PRINTER BUFFERS
  400.  
  401.           As with  REDIR and  server buffers, increasing  the size  of your
  402.           printer buffers  can improve printing  speed. If your  server has
  403.           more  than one printer attached, increasing the number of printer
  404.           tasks  will  allow   it  to  print  to  more   than  one  printer
  405.           simultaneously. Artisoft has determined through testing that with
  406.           some  applications  running  on the  server  optimum  printing is
  407.           achieved with printer tasks set to 1 no  matter how many printers
  408.           are  attached to  the  server.  Notably  these  applications  are
  409.           Windows 3.x, Clipper 5.0, and  Lotus products. If you notice slow
  410.           printing when  running one of  these programs on a  print server,
  411.           you can  increase print speed by  setting printer tasks to  1 and
  412.           setting cps in the printer resource to 9600.
  413.  
  414.           ARTISOFT,  Inc. makes  no warranties  as to  the completeness  or
  415.           accuracy of this document.   LANtastic is a registered  trademark
  416.           of ARTISOFT, Inc.   Brand names and product  names are trademarks
  417.           or registered trademarks of  their respective companies.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.